<template>
	<view class="own-fund-withdrawal">
		<view class="top-number">
			<view class="top-number-l">
				<text class="red-text">¥0.00</text>
				<text class="blue-text">账户余额</text>
			</view>
			<view class="top-number-r">
				<text class="blue-text">¥0.00</text>
				<text class="blue-text">锁定中</text>
			</view>
		</view>
		<view class="withdrawal-money">
			<view class="input-class uni-list-cell-left">
				<label>提现金额:</label>
				<input type="number" value="" placeholder="可提现" style="margin: 0px 5px;"> 元</input>
			</view>
		</view>
		<view class="select-bank-card uni-list">
			<view class="uni-list-cell">
				<view class="uni-list-cell-left">
					提现银行卡
				</view>
				<view class="uni-list-cell-db">
					<picker @change="bindPickerChange" :value="bankCardIndex" :range="bankCards">
						<view class="uni-input">{{bankCards[bankCardIndex].name}}</view>
					</picker>
				</view>
			</view>
		</view>
		<view class="withdrawal-btn">
			立即提现
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['中国', '美国', '巴西', '日本'],
				bankCards: [{
						name: "张小三 中国工商银行  ****4383"
					},
					{
						name: "张小三 中国工商银行  ****4383"
					}
				],
				bankCardIndex: 0
			}
		},
		methods: {
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.bankCardIndex = e.target.value
			}
		},
		onNavigationBarButtonTap(e) {
			uni.navigateTo({
				url: "/pages/own/own-bank-card-manage"
			})
		}
	}
</script>

<style lang="scss">
	.own-fund-withdrawal {
		width: 100%;
		background-color: rgba(242, 242, 242, 1);

		.red-text {
			font-weight: 650;
			color: #C24D50;
			font-size: 14px;
		}

		.blue-text {
			font-size: 14px;
			font-weight: 400;
			color: #7992AC;
		}

		.top-number {
			background-color: white;
			display: flex;
			flex-direction: row;
			justify-content: space-around;
			align-items: center;
			height: 105px;
			// border: 1px solid red;
			font-weight: bold;
		}

		.top-number-l,
		.top-number-r {
			display: flex;
			flex-direction: column;
			text-align: center;
			// justify-content: space-around;
		}

		.withdrawal-money {
			background-color: white;
			padding: 20px 30upx;
			margin: 10px 0px;
		}

		.input-class {
			display: flex;
			flex-direction: row;
			justify-content: flex-start;
			align-items: center;

			label {
				width: 20%;
				font-size: 14px;
			}

			input {
				width: 60%;
				border: 1px solid rgb(153, 153, 153);
			}

			// background-color: rgba(242, 242, 242, 1);
			padding: 10px 0px;
		}

		.select-bank-card {
			// border:  1px solid red;
			box-sizing: border-box;
		}

		.withdrawal-btn {
			background-color: white;
			margin-top: 20upx;
			height: 50px;
			text-align: center;
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			align-items: center;

			font-weight: 400;
			font-style: normal;
			color: #FF6600;
			font-weight: bold;
		}

	}
</style>
